<%--
  Created by IntelliJ IDEA.
  User: leman
  Date: 2017/7/18
  Time: 11:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<blockquote class="layui-elem-quote" style="line-height: 15px;">--%>
    <%--<a class="bt" href="javascript:;" ng-click="active.nextPage('28', '收款管理', '内容16', 'proceedManage')">收款管理</a> > 收款确认--%>
<%--</blockquote>--%>
<div id="seaBox" ng-hide="mySea">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">客户</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.consignorName" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">账单编号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.billCode" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">账单日期</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="billDate" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">订单金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.orderCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">结算金额</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.settleCost" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">发票号</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input layui-disabled" ng-model="data.bill.invoiceNo" readonly="readonly">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label wh">发票日期</label>
            <div class="layui-input-inline">
                <input class="layui-input layui-disabled" ng-model="invoiceDate" readonly="readonly">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">收款确认日期</label>
            <div class="layui-input-inline">
                <input class="layui-input valName" placeholder="选择日期" id="proceedDate" ng-model="proceedDate" ng-click="getTime($event,'createTimeStart')">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label wh">发票状态</label>
            <div class="layui-input-inline">
                <input type="text" autocomplete="off" class="layui-input layui-disabled" ng-model="invoiceStatus" readonly="readonly">
            </div>
        </div>
    </div>

    </div>
</div>
<div style="overflow-x:auto;">
    <table class="layui-table" style="min-width: 2000px;max-width:2000px;margin-bottom: 0;">
        <tr>
            <th>序号</th>
            <th>客户订单号</th>
            <th>服务订单号</th>
            <th>客户</th>
            <th>下单人</th>
            <th>下单日期</th>
            <th>起运地</th>
            <th>目的地</th>
            <th>品牌</th>
            <th>车系</th>
            <th>数量</th>
            <th>状态</th>
            <th>销售价</th>
            <th>调整金额</th>
            <th>结算金额</th>
            <th>承运商</th>
            <th>运单号</th>
            <th>采购价</th>
        </tr>
        <tr ng-repeat="x in data.list">
            <td ng-bind="$index+1"></td>
            <td ng-bind="x.customerOrderCode"></td>
            <td ng-bind="x.serviceOrderCode"></td>
            <td ng-bind="x.consignorName"></td>
            <td ng-bind="x.realName"></td>
            <td ng-bind="x.createTime"></td>
            <td ng-bind="x.departProvinceName+'-'+x.departCityName"></td>
            <td ng-bind="x.receiptProvinceName+'-'+x.receiptCityName"></td>
            <td ng-bind="x.brandName"></td>
            <td ng-bind="x.vehicleName"></td>
            <td ng-bind="x.amount"></td>
            <td ng-bind="x.status==10?'待接单':(x.status==30?'待支付':(x.status==40?'执行中':(x.status==50?'已提车':(x.status==60?'已发车':(x.status==70?'运输中':(x.status==80?'已交车':(x.status==90?'已完成':'')))))))"></td>
            <td ng-bind="x.sysCost"></td>
            <td ><a ng-bind="x.alterCost==null ? '0' : x.alterCost" ></a></td>
            <td ng-bind="x.settleCost"></td>
            <td ng-bind="x.purCom"></td>
            <td ng-bind="x.wayCode"></td>
            <td ng-bind="x.purPrice==null ? '0' : x.purPrice"></td>
         </tr>
    </table>
</div>
<div style="float:right;">
    <ul class="layui-box layui-laypage layui-laypage-default">
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="p_index(this)">首页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==1]" href="javascript:void(0);" ng-click="prev_page(this)">上一页</a>
        </li>
        <li ng-repeat="page in pages" ng-class="{true:'active'}[p_current==page]">
            <a class="layui-laypage-curr" href="javascript:void(0);" ng-click="load_page(page)">{{ page }}</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="next_page(this)">下一页</a>
        </li>
        <li>
            <a ng-class="{true:'layui-btn-disabled'}[p_current==p_all_page]" href="javascript:void(0);" ng-click="p_last()">尾页</a>
        </li>
    </ul>
    <span>共{{count}}条</span>
    <span style="padding-left: 10px;">到第
        <input id="on" type="text" value="{{p_current}}"/>页
        <button class="layui-btn layui-btn-small" ng-click="goBtn()" style="margin-top: -5px;">确定</button>
    </span>
</div>
<div class="layui-form-item" style="text-align: center;width: 100%;">
    <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="demo2" ng-click="active.nextPage('28', '收款管理', '内容16', 'proceedManage')">取消</button>
    <button class="layui-btn" ng-click="active.confirmProBtn()" id="id" value="{{data.bill.id}}">确认收款</button>
</div>


